import VueRouter from "vue-router"

export default new VueRouter({
    mode:'history',
    routes: [
        {
            path:'/',
            redirect: '/login'
        },
        {
            path:'/list',
            component:() => import('@/pages/List.vue')
        },
        {
            path:'/detail/:productId',
            component:() => import('@/pages/Detail.vue')
        },
        {
            path:'/login',
            component:() => import('@/components/Login.vue')
        },
        {
            path:'/personinfo',
            component:() => import('@/pages/PersonInfo.vue')
        },
        {
            path:'/personform/:change',
            component:() => import('@/pages/PersonForm.vue')
        },
        {
            path:'/orderinfo',
            name: 'orderinfo',
            component:() => import('@/pages/OrderInfo.vue')
        },
        {
            path:'/ordercompleted',
            component:() => import('@/pages/OrderCompleted.vue')          
        },
        {
            path:'/orderlist',
            component:() => import('@/pages/OrderList.vue')
        }
    ]
})